package com.sunshine.domain.convert;

import com.sunshine.domain.entity.SubjectCategroyBO;
import com.sunshine.domain.entity.SubjectInfoBO;
import com.sunshine.infra.basic.entity.SubjectCategory;
import com.sunshine.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @version 1.0
 * @Author 夏百友
 * @Date 2025/11/2 16:03
 */

@Mapper
public interface SubjectInfoConvert {

    SubjectInfoConvert INSTANCE = Mappers.getMapper(SubjectInfoConvert.class);
    SubjectInfo convertBoToInfo(SubjectInfoBO subjectInfoBO);

    List<SubjectCategroyBO> convertCategoryBoToDtoList(List<SubjectCategory> subjectCategoryList);
}